package com.jdk17feature.tryWithResource;

/**
 * @author piaohailin@163.com
 * @date 2021/9/17
 */
public class MyTryWithResource {
    public static void main(String[] args) {

        try (Connection conn = new Connection()) {
            conn.sendData();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
